import {getWeather} from "../api/home";

const mixin = {
    data() {
        return{
            weather:{}
        }
    },
    created() {
        getWeather({
            "area": "重庆",
        }).then(res => {
            this.weather = res.data.showapi_res_body.f1
        })
    }
}
export default mixin;
